package com.example.hw_cacaowithoutinputpicture;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.FrameLayout;
import android.widget.TextView;

public class SendView extends FrameLayout{

	TextView sendView;
	MessageData mData;
	
//	public interface OnMessageClickListener{
//		public void onMessageClick(View v, MessageData data);
//	}
//	
//	OnMessageClickListener mListener;
//	
//	public void setOnMessageClickListener(OnMessageClickListener listener){
//		mListener = listener;
//	}
	
	public SendView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
		LayoutInflater inflater = LayoutInflater.from(context);
		inflater.inflate(R.layout.send_layout, this);
		sendView = (TextView)findViewById(R.id.sendMessage);
	}
	
	public void setData(MessageData data){
		mData = data;
		sendView.setText(mData.message);
	}

}
